<?php
	class Tabla35{

		private $id;
		private $id_empresa;

		private $flujo;
		private $inversion1;
		private $inversion2;
		private $inversion3;
		private $inversion4;
		private $inversion5;
		private $inversion6;
		private $inversion7;
		private $inversion8;
		private $capital1;
		private $capital2;
		private $capital3;
		private $capital4;
		private $inversion9;
		private $inversion10;
		private $inversion11;
		private $inversion12;
		private $ventas1;
		private $ventas2;
		private $ventas3;
		private $ventas4;
		private $costo1;
		private $costo2;
		private $costo3;
		private $costo4;
		private $bruta1;
		private $bruta2;
		private $bruta3;
		private $bruta4;
		private $gastos1;
		private $gastos2;
		private $gastos3;
		private $gastos4;
		private $gastos5;
		private $gastos6;
		private $gastos7;
		private $gastos8;
		private $operativa1;
		private $operativa2;
		private $operativa3;
		private $operativa4;
		private $impuestos1;
		private $impuestos2;
		private $impuestos3;
		private $impuestos4;
		private $flujo_caja1;
		private $flujo_caja2;
		private $flujo_caja3;
		private $flujo_caja4;
		private $deuda1;
		private $deuda2;
		private $deuda3;
		private $deuda4;
		private $financiero1;
		private $financiero2;
		private $financiero3;
		private $financiero4;
		
		private $archivo;

		public function __construct($id = 0){
			$this->id = $id;
			if($this->id > 0){
				$sql = "SELECT * FROM png_tabla35 WHERE id_empresa = ".$id;
				$query = new Consulta($sql);
				if($query->NumeroRegistros() > 0){
					$row = $query->VerRegistro();
					$this->id_empresa = $row['id_empresa'];

					$this->flujo = $row['flujo'];
					$this->inversion1 = $row['inversion1'];
					$this->inversion2 = $row['inversion2'];
					$this->inversion3 = $row['inversion3'];
					$this->inversion4 = $row['inversion4'];
					$this->inversion5 = $row['inversion5'];
					$this->inversion6 = $row['inversion6'];
					$this->inversion7 = $row['inversion7'];
					$this->inversion8 = $row['inversion8'];
					$this->capital1 = $row['capital1'];
					$this->capital2 = $row['capital2'];
					$this->capital3 = $row['capital3'];
					$this->capital4 = $row['capital4'];
					$this->inversion9 = $row['inversion9'];
					$this->inversion10 = $row['inversion10'];
					$this->inversion11 = $row['inversion11'];
					$this->inversion12 = $row['inversion12'];
					$this->ventas1 = $row['ventas1'];
					$this->ventas2 = $row['ventas2'];
					$this->ventas3 = $row['ventas3'];
					$this->ventas4 = $row['ventas4'];
					$this->costo1 = $row['costo1'];
					$this->costo2 = $row['costo2'];
					$this->costo3 = $row['costo3'];
					$this->costo4 = $row['costo4'];
					$this->bruta1 = $row['bruta1'];
					$this->bruta2 = $row['bruta2'];
					$this->bruta3 = $row['bruta3'];
					$this->bruta4 = $row['bruta4'];
					$this->gastos1 = $row['gastos1'];
					$this->gastos2 = $row['gastos2'];
					$this->gastos3 = $row['gastos3'];
					$this->gastos4 = $row['gastos4'];
					$this->gastos5 = $row['gastos5'];
					$this->gastos6 = $row['gastos6'];
					$this->gastos7 = $row['gastos7'];
					$this->gastos8 = $row['gastos8'];
					$this->operativa1 = $row['operativa1'];
					$this->operativa2 = $row['operativa2'];
					$this->operativa3 = $row['operativa3'];
					$this->operativa4 = $row['operativa4'];
					$this->impuestos1 = $row['impuestos1'];
					$this->impuestos2 = $row['impuestos2'];
					$this->impuestos3 = $row['impuestos3'];
					$this->impuestos4 = $row['impuestos4'];
					$this->flujo_caja1 = $row['flujo_caja1'];
					$this->flujo_caja2 = $row['flujo_caja2'];
					$this->flujo_caja3 = $row['flujo_caja3'];
					$this->flujo_caja4 = $row['flujo_caja4'];
					$this->deuda1 = $row['deuda1'];
					$this->deuda2 = $row['deuda2'];
					$this->deuda3 = $row['deuda3'];
					$this->deuda4 = $row['deuda4'];
					$this->financiero1 = $row['financiero1'];
					$this->financiero2 = $row['financiero2'];
					$this->financiero3 = $row['financiero3'];
					$this->financiero4 = $row['financiero4'];
					
					$this->archivo 	= $row['archivo'];
				}					
			}
		}

		public function __get($atributo){
			return $this->$atributo;	
		}

	}
?>